{extend name="base/main" /}
{block name="body"}
    <div class="wrapper wrapper-content animated fadeInRight">
        <div class="ibox float-e-margins">
            <div class="ibox-title">
                <h5>主页 / 编辑资料</h5>
            </div>
            <div class="ibox-content">
                <form id="f" action="{:url('Common/userInfo')}" class="form-horizontal m-t">
                    <div class="form-group">
                        <label class="col-sm-2 control-label">登录名：</label>
                        <div class="col-sm-4">
                            <input name="" class="form-control" type="text" value="{$find.username}" disabled >
                            <span class="help-block m-b-none Validform_checktip" ><i class="fa fa-info-circle"></i> 作为登录时的帐号</span>
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-sm-2 control-label">昵称：</label>
                        <div class="col-sm-4">
                            <input name="nickname" class="form-control" type="text" value="{$find.nickname}" datatype="*2-16" nullmsg="请输入昵称" errormsg="昵称范围在2~16位之间的字符串！">
                            <span class="help-block m-b-none Validform_checktip" ><i class="fa fa-info-circle"></i> 登录后显示的名称</span>
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-sm-2 control-label">密码：</label>
                        <div class="col-sm-4">
                            <input name="password" class="form-control" type="password" value="" datatype="s6-16|*0-0" errormsg="密码范围在6~16位之间！">
                            <span class="help-block m-b-none Validform_checktip" ><i class="fa fa-info-circle"></i> 登录使用的密码，不填写表示不修改密码，但可以保存其它资料</span>
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-sm-2 control-label">再次输入密码：</label>
                        <div class="col-sm-4">
                            <input name="password2" class="form-control" type="password" value="" datatype="s6-16|*0-0" recheck="password" errormsg="两次输入的密码不一致！">
                            <span class="help-block m-b-none Validform_checktip" ><i class="fa fa-info-circle"></i> 确认两次输入的密码是否相同</span>
                        </div>
                    </div>
                    
                    <div class="form-group">
                        <div class="col-sm-4 col-sm-offset-3">
                            <input type="hidden" name="uid" value="{$find.uid}"/>
                            <button class="btn btn-primary" type="submit">提交</button>
                            <!-- <button class="btn btn-default historygo" type="button">返回</button> -->
                        </div>
                    </div>
                </form>
            </div>
        </div>
    </div>
{/block}